Exynos4412: pinmux: disable pull for MMC pins
authorPrzemyslaw Marczak <[email protected]>
Wed, 28 Oct 2015 14:41:49 +0000 (15:41 +0100)
committerMinkyu Kang <[email protected]>
Mon, 2 Nov 2015 01:38:10 +0000 (10:38 +0900)
There are 8 pins for SD card in Exynos, but the MUX was configured
only for 7, since the one was used for card detection.
This caused the pin's pull wrong configuration.

This commit fixes this and the card detect can work properly,
after call this function.

Tested-on: Odroid U3 and Odroid X2.

Signed-off-by: Przemyslaw Marczak <[email protected]>
Cc: Guillaume GARDET <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Jaehoon Chung <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Simon Glass <[email protected]>
Acked-by: Jaehoon Chung <[email protected]>
Tested-by: Lukasz Majewski <[email protected]>
Signed-off-by: Minkyu Kang <[email protected]>
arch/arm/mach-exynos/pinmux.c

index a556e4afc7add8e9203b649a56e25bb6221cb425..12eb79cb0cba417cf9bdcdfb1abefbbdd02c62b3 100644 (file)
@@ -737,10 +737,10 @@ static int exynos4x12_mmc_config(int peripheral, int flags)
                return -1;
        }
        for (i = start; i < (start + 7); i++) {
+               gpio_set_pull(i, S5P_GPIO_PULL_NONE);
                if (i == (start + 2))
                        continue;
                gpio_cfg_pin(i,  func);
-               gpio_set_pull(i, S5P_GPIO_PULL_NONE);
                gpio_set_drv(i, S5P_GPIO_DRV_4X);
        }
        if (flags & PINMUX_FLAG_8BIT_MODE) {